package org.yys.seata.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("stock-service")
public interface StockClient {
    @GetMapping("/stock/decrease")
    String decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}
